/*
 * Diego Zamboni Latance 			344990
 * Fellipe Augusto Ruiz de Souza 	344796
 * 
 */
package ast;

public class MessageSendStatic extends MessageSend {

	public void genC(PW pw, boolean putParenthesis) {
	}

	public void genKrakatoa(PW pw, boolean putParenthesis) {
		pw.print(classDec.getKrakatoaName() + "." + method.getIdent() + "(");
		if (exprList != null)
			exprList.genKrakatoa(pw);
		pw.print(")");
	}

	public MessageSendStatic(Method method, ClassDec classDec, ExprList exprList) {
		this.method = method;
		this.classDec = classDec;
		this.exprList = exprList;
	}

	public Type getType() {
		System.out.println(method);
		return method.getType();
	}

	private Method method;
	private ExprList exprList;
	private ClassDec classDec;

}